package com.bawei.base.room

import android.app.Application
import androidx.room.Room

class UserUtils {
    companion object{

        private lateinit var appDataBase: AppDataBase

        //
        fun init(application: Application){
            appDataBase = Room.databaseBuilder(application,AppDataBase::class.java,"user.db")
                .allowMainThreadQueries()
                .build()
        }

        //
        fun getDB() = appDataBase
    }
}